
{% extends 'index.html' %}

{% block page-content %}
{% block index__part %}
    <link href="/static/css/signin.css" rel="stylesheet">
<!-- Place inside the <head> of your HTML -->
<script type="text/javascript" src="/static/tinymce/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">

tinymce.init({
    selector: "textarea",
    theme: "modern",
    plugins: [
        "advlist autolink lists link image charmap print preview hr anchor pagebreak",
        "searchreplace wordcount visualblocks visualchars code fullscreen",
        "insertdatetime media nonbreaking save table contextmenu directionality",
        "emoticons template paste textcolor colorpicker textpattern"
    ],
    toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
    toolbar2: "print preview media | forecolor backcolor emoticons",
    image_advtab: true,
    templates: [
        {title: 'Test template 1', content: 'Test 1'},
        {title: 'Test template 2', content: 'Test 2'}
    ]
});

</script>
<center>
    <div  style="width: 30%;">
<!-- Place this in the body of the page content -->
<form enctype="multipart/form-data"  method="post" action="/bbs_sub/">
        {% csrf_token %}
    <h3>标题</h3>
    <input type="text" name="title" class="form-control" placeholder="" required>
    <hr>
    <h3>内容</h3>
    <textarea name="content"></textarea>
    <hr>
    <h3>摘要</h3>
    <input type="text" name="summary" class="form-control" placeholder="Summary" required>
    <br>
    <input type="file" name="summary_pictrue" placeholder="Summary">
    <br>
    <div class="form-signin">
        <button class="btn btn-lg btn-primary btn-block" type="submit">Save</button>
    </div>
{#    <input type='submit' value='Save' />#}

</form>
</div></center>

{% endblock %}
{% endblock %}